package com.watering.plan;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

/*
 * The Watering Plan 
 * Android application
 * author : Gafitanu Sinziana
 * 
 * This is the first class of the application,
 * the main screen displaying the logo.
 * 
 * Layout : main.xml
 * Img : logo.png
 */

public class MainScreen extends Activity implements OnClickListener{
	
	private ImageView mIV;
    private Bitmap mBitmap;
    
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
    	super.onCreate(savedInstanceState);
         setContentView(R.layout.main);
         
         mBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.logo); 
         mIV = (ImageView)findViewById(R.id.logo);
         mIV.setImageBitmap(mBitmap); 
         mIV.setOnClickListener(this);
         
        }
    
	public void onClick(View arg0) {
		
		Intent myIntent = new Intent(this, com.watering.plan.Leaffy.class);
		startActivity(myIntent); 
		
		
	}
    
 }